package com.eva.learn.other;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by evain on 15/8/22.
 */
public class ListTest {

    private static final long ONE_DAY = (24 * 60 * 60 * 1000);

    public static void main(String[] args) {
//        List<String> list1 = new ArrayList<String>();
//        list1.add("a");
//        list1.add("b");
//        list1.add("c");
//        list1.add("d");
//        List<String> list2 = list1.subList();
//        System.out.println(list1);
//        System.out.println();
//        System.out.println(list2);

        List<Integer> list = new ArrayList<Integer>();
        list.add(1);
        list.add(2);
        String s1 = list.toString();
        System.out.println(s1.substring(1,s1.length()-1));
        System.out.println( new Timestamp(new Date().getTime()));


        System.out.println(new Date(0L));

    }
}
